package com.buaa.aiguangxi.service;

import com.buaa.aiguangxi.dao.PredictionDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PredictionService {
    @Autowired
    PredictionDao predictionDao;
    public List<Map<String,Object>> getPredictionBySceneIdAndType(String sceneId, int type){
        return predictionDao.getPredictionBySceneIdAndType(sceneId,type);
    }

    public List<Map<String,Object>> getPredictionBySceneId(String sceneId){
        return predictionDao.getPredictionBySceneId(sceneId);
    }
}
